package com.xinqi.modules.sys.rotation.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.rotation.domain.RotationImageEntity;
import com.xinqi.modules.sys.rotation.dto.req.RotationImageCreateDTO;
import com.xinqi.modules.sys.rotation.dto.req.RotationImageUpdateDTO;
import com.xinqi.modules.sys.rotation.dto.rsp.RotationImageResultDTO;
import org.mapstruct.Mapper;

/**
 * 系统轮播图转换
 *
 * @author: yyzhenn
 * @date: 2023/04/23
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class RotationImageConvert {
    public abstract RotationImageEntity create(RotationImageCreateDTO s);

    public abstract RotationImageEntity update(RotationImageUpdateDTO s);

    public abstract RotationImageResultDTO convert(RotationImageEntity s);
}
